package com.lgkj.zhm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lgkj.zhm.mapper.SwipingCardTimeMapper;
import com.lgkj.zhm.domain.SwipingCardTime;
import com.lgkj.zhm.service.ISwipingCardTimeService;

/**
 * 刷卡记录Service业务层处理
 *
 * @author 代星登
 * @date 2021-02-25
 */
@Service
public class SwipingCardTimeServiceImpl implements ISwipingCardTimeService
{
    @Autowired
    private SwipingCardTimeMapper swipingCardTimeMapper;

    /**
     * 查询刷卡记录
     *
     * @param id 刷卡记录ID
     * @return 刷卡记录
     */
    @Override
    public SwipingCardTime selectSwipingCardTimeById(Long id)
    {
        return swipingCardTimeMapper.selectSwipingCardTimeById(id);
    }

    /**
     * 查询刷卡记录列表
     *
     * @param swipingCardTime 刷卡记录
     * @return 刷卡记录
     */
    @Override
    public List<SwipingCardTime> selectSwipingCardTimeList(SwipingCardTime swipingCardTime)
    {
        return swipingCardTimeMapper.selectSwipingCardTimeList(swipingCardTime);
    }

    /**
     * 新增刷卡记录
     *
     * @param swipingCardTime 刷卡记录
     * @return 结果
     */
    @Override
    public int insertSwipingCardTime(SwipingCardTime swipingCardTime)
    {
        return swipingCardTimeMapper.insertSwipingCardTime(swipingCardTime);
    }

    /**
     * 修改刷卡记录
     *
     * @param swipingCardTime 刷卡记录
     * @return 结果
     */
    @Override
    public int updateSwipingCardTime(SwipingCardTime swipingCardTime)
    {
        return swipingCardTimeMapper.updateSwipingCardTime(swipingCardTime);
    }

    /**
     * 批量删除刷卡记录
     *
     * @param ids 需要删除的刷卡记录ID
     * @return 结果
     */
    @Override
    public int deleteSwipingCardTimeByIds(Long[] ids)
    {
        return swipingCardTimeMapper.deleteSwipingCardTimeByIds(ids);
    }

    /**
     * 删除刷卡记录信息
     *
     * @param id 刷卡记录ID
     * @return 结果
     */
    @Override
    public int deleteSwipingCardTimeById(Long id)
    {
        return swipingCardTimeMapper.deleteSwipingCardTimeById(id);
    }
}
